/*
 *    Copyright (c) 2018-2025, bfcloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: bfcloud
 */

import request from '@/router/axios'


//根据任务书创建id查询指标
export function getWorkAssignzbList(query) {
  return request({
    url: '/appr-contract/workAssignzb/getListByIdOrDingType',
    method: 'get',
    params: query
  })
}

export function saveWorkZb(query) {
  return request({
    url: '/appr-contract/workAssignzb/saveWorkZb',
    method: 'post',
    data: query
  })
}

export function removeById(id) {
  return request({
    url: '/appr-contract/workAssignzb/removeById/'+id,
    method: 'delete',
  })
}

export function getFormula() {
  return request({
    url: '/appr-contract/workAssignzb/getFormula',
    method: 'get',
  })
}

export function getPage(query) {
  return request({
    url: '/appr-contract/workAssignzb/getPage',
    method: 'get',
    params: query
  })
}




export function ok(id) {
  return request({
    url: '/appr-contract/workAssignzb/ok/'+id,
    method: 'post'
  })
}

export function okAll(query) {
  return request({
    url: '/appr-contract/workAssignzb/okAll',
    method: 'post',
    data: query
  })
}

export function back(id) {
  return request({
    url: '/appr-contract/workAssignzb/back/'+id,
    method: 'post'
  })
}

export function backAll(query) {
  return request({
    url: '/appr-contract/workAssignzb/backAll',
    method: 'post',
    data: query
  })
}

export function bathSave(query) {
  return request({
    url: '/appr-contract/workAssignzb/bathSave',
    method: 'post',
    data: query
  })
}

